//
//  HDWKWebView.h
//  AccountEasy
//
//  Created by mac on 2020/7/27.
//  Copyright © 2020 AccountEasy. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <WebKit/WebKit.h>

@interface HDWKWebView : UIView

//web的title，时时更新
@property (nonatomic, copy  )   NSString *titleName;

//加载的H5的链接
@property (nonatomic, copy  )   NSString *url;

//不需要适配字体
@property (nonatomic, assign)   BOOL isAdaptive;

//自定义的UA，默认为""
@property (nonatomic, copy  )   NSString *userAgent;

//url的requestHeader里的内容，string形式的key和value，默认@{}
@property (nonatomic, copy  )   NSDictionary *headerParams;

//message.name，message.body
@property (nonatomic, copy  )   void(^jsActionBlock)(NSString *name,id body);

//
@property (nonatomic, copy  )   NSDictionary *openVipDic;

//jsArray：ScriptMessageHandler方法名 （必须用这个方法初始化）
- (instancetype)initWithConfig:(NSArray *)jsArray frame:(CGRect)frame;

//加载url
- (void)startLoadUrl;

//刷新界面
- (void)wkRefresh;

//返回上一个界面---popViewController
- (void)wkPopViewController;

//返回web的history---[wkWebView goBack];
- (void)wkGoWebHistory;

//返回主界面---popToRootViewController
- (void)wkPopRootViewController;


@end
